import {NgModule} from "@angular/core";
import {GlobalHttpInterceptor} from "@core/interceptor/GlobalHttpInterceptor";
import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http";
import {LoginModule} from "@app/module/login/LoginModule";
import {AppComponent} from "@app/app.component";
import {RouterOutlet} from "@angular/router";
import {AppRoutingModule} from "@app/app.routes";
import {BrowserModule} from "@angular/platform-browser";
import {NzModule} from "@app/nzModule.config";
import {ModalComponentComponent} from "@app/shared/components/modal-component/modal-component.component";
import {HomeModule} from "@app/module/home/home.module";
import {SharedModule} from "@app/shared/components/SharedModule";
import {NgxEchartsModule} from "ngx-echarts";

@NgModule({
    declarations: [
        AppComponent,
    ],
  imports: [
    NgxEchartsModule,
    HttpClientModule,
    LoginModule,
    RouterOutlet,
    AppRoutingModule,
    BrowserModule,
    NzModule,
    ModalComponentComponent,
    HomeModule,
    SharedModule
  ],
    providers: [
        {
            provide: HTTP_INTERCEPTORS,
            useClass: GlobalHttpInterceptor,
            multi: true,
        }
    ],
    bootstrap: [
        AppComponent
    ],
    exports: [
    ]
})
export class AppModule {}
